﻿@{
    ViewBag.Title = "Form2";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        $.ajax({
            url: "/Project/Instructions/GetFormJsonH",
            data: { keyValue: keyValue },
            dataType: "json",
            async: false,
            success: function (data) {
                $("#form1").formSerialize(data);
                if (data != null) {
                    keyValue = data.F_Id;
                }
            }
        });
    });

    function submitForm() {
        var postData = $("#form1").formSerialize();
        if (!$('#form1').formValid()) {
            return false;
        }
        debugger;
        $.submitForm({
            url: "/Project/Instructions/SubmitFormH?keyValue=" + keyValue,
            param: postData,
            success: function () {
                $.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        })
    }
</script>
<form id="form1">
    <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#">基本信息</a></li>
        </ul>
        <div style="padding-top: 20px; margin-right: 30px;">
            <table class="form">
                <tr>
                    <th class="formTitle" valign="top" style="padding-top: 5px;">合作申请标题</th>
                    <td class="formValue" colspan="3">
                        <input id="Title" name="Title" type="text" class="form-control required" placeholder="请输入标题" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">添&ensp;加&ensp;者</th>
                    <td class="formValue">
                        <input id="AddUserName" name="AddUserName" type="text" class="form-control" placeholder="不填写时系统默认为当前用户" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle" valign="top" style="padding-top: 5px;">合作申请说明</th>
                    <td class="formValue" colspan="3">
                        <textarea id="ContenAbstract" name="ContenAbstract" class="form-control" style="height: 60px;" placeholder="请输入合作申请说明"></textarea>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>


